package com.aaa.common.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author ${author}
 * @since 2020-08-03
 */
@TableName("tb_room")
public class Room extends Model<Room> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "room_id", type = IdType.AUTO)
    private Integer roomId;
    /**
     * 寝室所在楼层
     */
    @TableField("room_storey")
    private Integer roomStorey;
    /**
     * 寝室号
     */
    @TableField("room_no")
    private Integer roomNo;
    /**
     * 入住状态，0未入住，1入住
     */
    @TableField("room_state")
    private Integer roomState;
    @TableField("inroom_time")
    private String inroomTime;


    public Integer getRoomId() {
        return roomId;
    }

    public void setRoomId(Integer roomId) {
        this.roomId = roomId;
    }

    public Integer getRoomStorey() {
        return roomStorey;
    }

    public void setRoomStorey(Integer roomStorey) {
        this.roomStorey = roomStorey;
    }

    public Integer getRoomNo() {
        return roomNo;
    }

    public void setRoomNo(Integer roomNo) {
        this.roomNo = roomNo;
    }

    public Integer getRoomState() {
        return roomState;
    }

    public void setRoomState(Integer roomState) {
        this.roomState = roomState;
    }

    public String getInroomTime(String format) {
        return inroomTime;
    }

    public void setInroomTime(String inroomTime) {
        this.inroomTime = inroomTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.roomId;
    }

    @Override
    public String toString() {
        return "Room{" +
        "roomId=" + roomId +
        ", roomStorey=" + roomStorey +
        ", roomNo=" + roomNo +
        ", roomState=" + roomState +
        ", inroomTime=" + inroomTime +
        "}";
    }
}
